package com.coffeeloversupportlibrary.coffeelover.mercury.my;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.ListView;

import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatButton;

import com.coffeeloversupportlibrary.R;
import com.coffeeloversupportlibrary.coffeelover.mercury.entity.User;


/**
 * @author 盛守义
 * @createTime 2021/11/3 17:10
 * @projectName TurningCoffee
 * @className AvatarActivity.java
 * @description TODO
 */
public class AvatarActivity extends Activity {
    private ImageView iv_avatar;
    private AppCompatButton btn_exchange;
    private Intent intent;


    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.my_activity_avatar);

        User user = getIntent().getParcelableExtra("userInfo");

        initViews();
        setListener();
    }

    void initViews(){
        iv_avatar = findViewById(R.id.civ_avatarmy);
        btn_exchange = findViewById(R.id.btn_exchangeavatar);
    }

    void setListener(){
        MyOnClickListener listener = new MyOnClickListener();
        btn_exchange.setOnClickListener(listener);

    }

    class MyOnClickListener implements View.OnClickListener {

        @Override
        public void onClick(View view) {
            //发送图片
        }
    }
}
